/**
 * Copyright © 2020 易久批信息技术有限公司. All rights reserved.
 */
package com.dysm.chainofresp;

/**
 *
 * @author xiay
 * @since 2020/12/13 8:30 下午
 */
public abstract class Leader {

    protected String name;

    protected Leader nextLeader;

    public Leader(String name) {
        this.name = name;
    }

    public String getName() {
        return this.name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setNextLeader(Leader nextLeader) {
        this.nextLeader = nextLeader;
    }
    public abstract void handleLeave(LeaveRequest request);

}
